<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>The implementation of Huffman coder: com.twogen.it.coder.InfoSource Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="me_2.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">The implementation of Huffman coder
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
   <div id="projectbrief">Bangjie Mo</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>com</b></li><li class="navelem"><b>twogen</b></li><li class="navelem"><b>it</b></li><li class="navelem"><a class="el" href="namespacecom_1_1twogen_1_1it_1_1coder.html">coder</a></li><li class="navelem"><a class="el" href="classcom_1_1twogen_1_1it_1_1coder_1_1_info_source.html">InfoSource</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classcom_1_1twogen_1_1it_1_1coder_1_1_info_source-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">com.twogen.it.coder.InfoSource Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad5585f8cdd884325322cb9f7ff7a0aec"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1twogen_1_1it_1_1coder_1_1_info_source.html#ad5585f8cdd884325322cb9f7ff7a0aec">InfoSource</a> (double...probabilities)</td></tr>
<tr class="separator:ad5585f8cdd884325322cb9f7ff7a0aec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14ad3b803df8c9ad9fe061dddb5d427d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1twogen_1_1it_1_1coder_1_1_info_source.html#a14ad3b803df8c9ad9fe061dddb5d427d">sort</a> ()</td></tr>
<tr class="separator:a14ad3b803df8c9ad9fe061dddb5d427d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f78899a05a3a0208b06db6ae6357c0e"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1twogen_1_1it_1_1coder_1_1_info_source.html#a0f78899a05a3a0208b06db6ae6357c0e">entrophy</a> ()</td></tr>
<tr class="separator:a0f78899a05a3a0208b06db6ae6357c0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a490d872d576315d7f7ff70bcb53cfdeb"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1twogen_1_1it_1_1coder_1_1_info_source.html#a490d872d576315d7f7ff70bcb53cfdeb">entrophy</a> (int base)</td></tr>
<tr class="separator:a490d872d576315d7f7ff70bcb53cfdeb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b26478df64704f7505a91f714dea6bb"><td class="memItemLeft" align="right" valign="top">double[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1twogen_1_1it_1_1coder_1_1_info_source.html#a1b26478df64704f7505a91f714dea6bb">getProbabilities</a> ()</td></tr>
<tr class="separator:a1b26478df64704f7505a91f714dea6bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46d17ae27e4fb741e0c7d982b843d4d7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a46d17ae27e4fb741e0c7d982b843d4d7"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>toString</b> ()</td></tr>
<tr class="separator:a46d17ae27e4fb741e0c7d982b843d4d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ad5635a5561493c7b339760d72f72f217"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1twogen_1_1it_1_1coder_1_1_info_source.html#ad5635a5561493c7b339760d72f72f217">sort</a> (double[] probabilities)</td></tr>
<tr class="separator:ad5635a5561493c7b339760d72f72f217"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59044e87c4e5b823aa92d03befcf9508"><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1twogen_1_1it_1_1coder_1_1_info_source.html#a59044e87c4e5b823aa92d03befcf9508">entrophy</a> (int base, double...probabilities)</td></tr>
<tr class="separator:a59044e87c4e5b823aa92d03befcf9508"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>信源 </p><dl class="section author"><dt>Author</dt><dd>帮杰 </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ad5585f8cdd884325322cb9f7ff7a0aec"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">com.twogen.it.coder.InfoSource.InfoSource </td>
          <td>(</td>
          <td class="paramtype">double...&#160;</td>
          <td class="paramname"><em>probabilities</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>构造函数 </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">probabilities</td><td>信源概率分布 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a0f78899a05a3a0208b06db6ae6357c0e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double com.twogen.it.coder.InfoSource.entrophy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>计算信源熵 </p><dl class="section return"><dt>Returns</dt><dd>H(X) </dd></dl>

</div>
</div>
<a class="anchor" id="a490d872d576315d7f7ff70bcb53cfdeb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double com.twogen.it.coder.InfoSource.entrophy </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>计算信源熵 </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>基 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>信源熵H(X) </dd></dl>

</div>
</div>
<a class="anchor" id="a59044e87c4e5b823aa92d03befcf9508"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static double com.twogen.it.coder.InfoSource.entrophy </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double...&#160;</td>
          <td class="paramname"><em>probabilities</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>计算信源熵 </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>基 </td></tr>
    <tr><td class="paramname">probabilities</td><td>概率分布 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>信源熵H(X) </dd></dl>

</div>
</div>
<a class="anchor" id="a1b26478df64704f7505a91f714dea6bb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double [] com.twogen.it.coder.InfoSource.getProbabilities </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取信源概率分布 </p><dl class="section return"><dt>Returns</dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a14ad3b803df8c9ad9fe061dddb5d427d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void com.twogen.it.coder.InfoSource.sort </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>将信源概率分布降序排序 </p>

</div>
</div>
<a class="anchor" id="ad5635a5561493c7b339760d72f72f217"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void com.twogen.it.coder.InfoSource.sort </td>
          <td>(</td>
          <td class="paramtype">double[]&#160;</td>
          <td class="paramname"><em>probabilities</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>降序排序 </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">probabilities</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>G:/java/project/huffman/src/com/twogen/it/coder/InfoSource.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.10
</small></address>
</body>
</html>
